package com.publish.file.service.auth;

import org.springframework.security.core.GrantedAuthority;

public class RoleGrantedAuthority implements GrantedAuthority {

	private static final long serialVersionUID = 3659384355729540177L;

	private String role;

	public RoleGrantedAuthority(String role) {
		super();
		this.role = role;
	}

	@Override
	public String getAuthority() {
		return role;
	}

	@Override
	public String toString() {
		return "RoleGrantedAuthority [role=" + role + "]";
	}

}
